//
//  YCAlertView3ViewController.m
//  DemoAlertView
//
//  Created by tangkexiong on 16/3/8.
//  Copyright © 2016年 tangkexiong. All rights reserved.
//

#import "YCAlertView3ViewController.h"

#import "YCAlertView3.h"

@interface YCAlertView3ViewController ()<YCAlertView3Delegate>

@end

@implementation YCAlertView3ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    UIButton *btn3 = [[UIButton alloc] initWithFrame:CGRectMake(8, 72, 200, 44)];
    [btn3 setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
    [btn3 setTitleColor:[UIColor grayColor] forState:UIControlStateHighlighted];
    [btn3 setTitle:@"提示对话框样式1" forState:UIControlStateNormal];
    [btn3 addTarget:self action:@selector(btn3Clicked:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:btn3];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (void)btn3Clicked:(id)sender {
    YCAlertView3 *alert = [YCAlertView3 instanceWithTitle:@"注意" message:@"你是一个好人" cancelBtnImg:[UIImage imageNamed:@"close"] delegate:self buttonTitles:@"确认", @"取消", nil];
    [alert show];
}

#pragma mark - YCAlertView3Delegate

- (void)alertView3DidCancel:(YCAlertView3 *)alertView {
    
}

- (void)alertView3:(YCAlertView3 *)alertView didClickedAtIndex:(NSInteger)index {
    
}

@end
